package datastructure

import scala.collection.mutable

object SetMap {
  def main(args: Array[String]): Unit = {

    var set = Set(1, 2, 3, 4, 5, 5)
    println(set)

    // 可变set
    var dset = mutable.Set[Int]()
    dset += 1
    dset += (2, 3, 4)
    dset ++= set
    println(dset)
  }

}
